/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Customer.java
 *
 * Created on May 4, 2010, 4:18:29 PM
 */

package com.aptech.BugRS.ui.main;

import java.sql.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.LookAndFeel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author KISS
 */
public class Customer extends javax.swing.JFrame {

    /** Creates new form Customer */
    public Customer() {
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            SwingUtilities.updateComponentTreeUI(this);
            initComponents();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        pnlLeft = new javax.swing.JPanel();
        tp = new com.l2fprod.common.swing.JTaskPane();
        tpCustomManagement = new com.l2fprod.common.swing.JTaskPaneGroup();
        lbtnViewInformation = new com.l2fprod.common.swing.JLinkButton();
        lbtnChangePassword = new com.l2fprod.common.swing.JLinkButton();
        lbtnSignOut = new com.l2fprod.common.swing.JLinkButton();
        tpSearch = new com.l2fprod.common.swing.JTaskPaneGroup();
        lbtnDispatchNo = new com.l2fprod.common.swing.JLinkButton();
        lbtnProductName = new com.l2fprod.common.swing.JLinkButton();
        lbtnHelp = new com.l2fprod.common.swing.JLinkButton();
        lbtnIntenet = new com.l2fprod.common.swing.JLinkButton();
        pnlRight = new javax.swing.JPanel();
        pnlRightLeft = new javax.swing.JPanel();
        pnlCustomer = new javax.swing.JPanel();
        lblCustomer = new javax.swing.JLabel();
        pnlProduct = new javax.swing.JPanel();
        lblDispatchNo = new javax.swing.JLabel();
        tfProductName = new javax.swing.JTextField();
        lblProductName = new javax.swing.JLabel();
        lblDateOrder = new javax.swing.JLabel();
        lblWarranty = new javax.swing.JLabel();
        tfDispatchNo = new javax.swing.JTextField();
        tfWarranty = new javax.swing.JTextField();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        pnlComplaint = new javax.swing.JPanel();
        tfTitle = new javax.swing.JTextField();
        lblTitle = new javax.swing.JLabel();
        lblContent = new javax.swing.JLabel();
        scr = new javax.swing.JScrollPane();
        taContent = new javax.swing.JTextArea();
        pnlButton = new javax.swing.JPanel();
        btnSend = new javax.swing.JButton();
        btnReset = new javax.swing.JButton();
        pnlRightRight = new javax.swing.JPanel();
        pnlTable = new javax.swing.JPanel();
        scrlist = new javax.swing.JScrollPane();
        tbList = new javax.swing.JTable();
        pnlList = new javax.swing.JPanel();
        lblComplaintList = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        btnViewDetails = new javax.swing.JButton();
        btnBack = new javax.swing.JButton();
        btnforward = new javax.swing.JButton();
        pnlBanner = new javax.swing.JPanel();
        lblbanner = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Customer");
        setMinimumSize(new java.awt.Dimension(1020, 700));

        tpCustomManagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/users1.png"))); // NOI18N
        tpCustomManagement.setTitle("Customer Management");

        lbtnViewInformation.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/businessman_find.png"))); // NOI18N
        lbtnViewInformation.setMnemonic('V');
        lbtnViewInformation.setText("View Infomation of Customer");
        tpCustomManagement.getContentPane().add(lbtnViewInformation);

        lbtnChangePassword.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/gear.png"))); // NOI18N
        lbtnChangePassword.setMnemonic('C');
        lbtnChangePassword.setText("Change Password");
        lbtnChangePassword.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lbtnChangePasswordActionPerformed(evt);
            }
        });
        tpCustomManagement.getContentPane().add(lbtnChangePassword);

        lbtnSignOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/signout.png"))); // NOI18N
        lbtnSignOut.setMnemonic('S');
        lbtnSignOut.setText("Sign out");
        lbtnSignOut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lbtnSignOutActionPerformed(evt);
            }
        });
        tpCustomManagement.getContentPane().add(lbtnSignOut);

        tp.add(tpCustomManagement);

        tpSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Search-32.png"))); // NOI18N
        tpSearch.setTitle("Search");

        lbtnDispatchNo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/arrow_right_green.png"))); // NOI18N
        lbtnDispatchNo.setMnemonic('D');
        lbtnDispatchNo.setText("DispatchNo");
        lbtnDispatchNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lbtnDispatchNoActionPerformed(evt);
            }
        });
        tpSearch.getContentPane().add(lbtnDispatchNo);

        lbtnProductName.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/arrow_right_green.png"))); // NOI18N
        lbtnProductName.setMnemonic('P');
        lbtnProductName.setText("Product Name");
        tpSearch.getContentPane().add(lbtnProductName);

        lbtnHelp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/about.png"))); // NOI18N
        lbtnHelp.setMnemonic('H');
        lbtnHelp.setText("Help And Support Center");
        tpSearch.getContentPane().add(lbtnHelp);

        lbtnIntenet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/at.png"))); // NOI18N
        lbtnIntenet.setMnemonic('I');
        lbtnIntenet.setText("Search the Internet");
        tpSearch.getContentPane().add(lbtnIntenet);

        tp.add(tpSearch);

        javax.swing.GroupLayout pnlLeftLayout = new javax.swing.GroupLayout(pnlLeft);
        pnlLeft.setLayout(pnlLeftLayout);
        pnlLeftLayout.setHorizontalGroup(
            pnlLeftLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tp, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        pnlLeftLayout.setVerticalGroup(
            pnlLeftLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tp, javax.swing.GroupLayout.DEFAULT_SIZE, 459, Short.MAX_VALUE)
        );

        pnlRight.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Complaint Management", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12), new java.awt.Color(0, 0, 204))); // NOI18N

        pnlCustomer.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        lblCustomer.setFont(new java.awt.Font("Tahoma", 1, 15));
        lblCustomer.setText("Add a new Complaint");
        pnlCustomer.add(lblCustomer);

        pnlProduct.setBorder(javax.swing.BorderFactory.createTitledBorder("Product Details"));
        pnlProduct.setLayout(new java.awt.GridBagLayout());

        lblDispatchNo.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDispatchNo.setText("Dispatch No:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlProduct.add(lblDispatchNo, gridBagConstraints);

        tfProductName.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
        pnlProduct.add(tfProductName, gridBagConstraints);

        lblProductName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProductName.setText("Product Name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlProduct.add(lblProductName, gridBagConstraints);

        lblDateOrder.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDateOrder.setText("Date Order:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlProduct.add(lblDateOrder, gridBagConstraints);

        lblWarranty.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblWarranty.setText("Warranty:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlProduct.add(lblWarranty, gridBagConstraints);

        tfDispatchNo.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
        pnlProduct.add(tfDispatchNo, gridBagConstraints);

        tfWarranty.setColumns(20);
        tfWarranty.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfWarrantyActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
        pnlProduct.add(tfWarranty, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
        pnlProduct.add(jDateChooser1, gridBagConstraints);

        pnlComplaint.setBorder(javax.swing.BorderFactory.createTitledBorder("Content of Complaint"));
        pnlComplaint.setLayout(new java.awt.GridBagLayout());

        tfTitle.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlComplaint.add(tfTitle, gridBagConstraints);

        lblTitle.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblTitle.setText("Title:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlComplaint.add(lblTitle, gridBagConstraints);

        lblContent.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblContent.setText("Content:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlComplaint.add(lblContent, gridBagConstraints);

        scr.setPreferredSize(new java.awt.Dimension(200, 150));

        taContent.setColumns(20);
        taContent.setRows(5);
        taContent.setMinimumSize(new java.awt.Dimension(4, 20));
        scr.setViewportView(taContent);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        pnlComplaint.add(scr, gridBagConstraints);

        btnSend.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btnSend.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/save.png"))); // NOI18N
        btnSend.setText("Send");
        btnSend.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSendActionPerformed(evt);
            }
        });
        pnlButton.add(btnSend);

        btnReset.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnReset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Reset.png"))); // NOI18N
        btnReset.setText("Reset");
        pnlButton.add(btnReset);

        javax.swing.GroupLayout pnlRightLeftLayout = new javax.swing.GroupLayout(pnlRightLeft);
        pnlRightLeft.setLayout(pnlRightLeftLayout);
        pnlRightLeftLayout.setHorizontalGroup(
            pnlRightLeftLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlRightLeftLayout.createSequentialGroup()
                .addGroup(pnlRightLeftLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pnlProduct, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
                    .addComponent(pnlComplaint, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
                    .addComponent(pnlCustomer, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
                    .addComponent(pnlButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE))
                .addContainerGap())
        );
        pnlRightLeftLayout.setVerticalGroup(
            pnlRightLeftLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlRightLeftLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(pnlCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlComplaint, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pnlRightRight.setLayout(new java.awt.BorderLayout());

        pnlTable.setLayout(new java.awt.BorderLayout());

        tbList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrlist.setViewportView(tbList);

        pnlTable.add(scrlist, java.awt.BorderLayout.CENTER);

        pnlList.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        lblComplaintList.setFont(new java.awt.Font("Tahoma", 1, 15));
        lblComplaintList.setText("List of My Complaint");
        pnlList.add(lblComplaintList);

        pnlTable.add(pnlList, java.awt.BorderLayout.PAGE_START);

        btnViewDetails.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnViewDetails.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/view.png"))); // NOI18N
        btnViewDetails.setText("View Details");
        jPanel1.add(btnViewDetails);

        btnBack.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnBack.setText("<--");
        jPanel1.add(btnBack);

        btnforward.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnforward.setText("-->");
        jPanel1.add(btnforward);

        pnlTable.add(jPanel1, java.awt.BorderLayout.PAGE_END);

        pnlRightRight.add(pnlTable, java.awt.BorderLayout.CENTER);

        javax.swing.GroupLayout pnlRightLayout = new javax.swing.GroupLayout(pnlRight);
        pnlRight.setLayout(pnlRightLayout);
        pnlRightLayout.setHorizontalGroup(
            pnlRightLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlRightLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlRightLeft, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlRightRight, javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE))
        );
        pnlRightLayout.setVerticalGroup(
            pnlRightLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlRightLayout.createSequentialGroup()
                .addGroup(pnlRightLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlRightLeft, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlRightRight, javax.swing.GroupLayout.PREFERRED_SIZE, 417, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pnlBanner.setPreferredSize(new java.awt.Dimension(846, 100));

        lblbanner.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblbanner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/CUS.jpg"))); // NOI18N
        lblbanner.setMinimumSize(new java.awt.Dimension(1020, 100));
        lblbanner.setPreferredSize(new java.awt.Dimension(1020, 100));

        javax.swing.GroupLayout pnlBannerLayout = new javax.swing.GroupLayout(pnlBanner);
        pnlBanner.setLayout(pnlBannerLayout);
        pnlBannerLayout.setHorizontalGroup(
            pnlBannerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblbanner, javax.swing.GroupLayout.DEFAULT_SIZE, 1050, Short.MAX_VALUE)
        );
        pnlBannerLayout.setVerticalGroup(
            pnlBannerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBannerLayout.createSequentialGroup()
                .addComponent(lblbanner, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlBanner, 0, 1050, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlLeft, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlRight, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlBanner, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlRight, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlLeft, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void lbtnChangePasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lbtnChangePasswordActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_lbtnChangePasswordActionPerformed

    private void lbtnSignOutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lbtnSignOutActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_lbtnSignOutActionPerformed

    private void lbtnDispatchNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lbtnDispatchNoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_lbtnDispatchNoActionPerformed

    private void tfWarrantyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfWarrantyActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_tfWarrantyActionPerformed

    private void btnSendActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSendActionPerformed
        int DispathNo = 0;
        String ProductName = "";
        Date DateOrder = null;
        int Warranty = 0;
        String Title = "";
        String Content = "";

        DispathNo = Integer.parseInt(tfDispatchNo.getText().trim());
        ProductName = tfProductName.getText().trim();
        DateOrder = (Date) jDateChooser1.getDate();
        Warranty = Integer.parseInt(tfWarranty.getText().trim());
        Title = tfTitle.getText().trim();
        Content = taContent.getText().trim();

    }//GEN-LAST:event_btnSendActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Customer().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBack;
    private javax.swing.JButton btnReset;
    private javax.swing.JButton btnSend;
    private javax.swing.JButton btnViewDetails;
    private javax.swing.JButton btnforward;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lblComplaintList;
    private javax.swing.JLabel lblContent;
    private javax.swing.JLabel lblCustomer;
    private javax.swing.JLabel lblDateOrder;
    private javax.swing.JLabel lblDispatchNo;
    private javax.swing.JLabel lblProductName;
    private javax.swing.JLabel lblTitle;
    private javax.swing.JLabel lblWarranty;
    private javax.swing.JLabel lblbanner;
    private com.l2fprod.common.swing.JLinkButton lbtnChangePassword;
    private com.l2fprod.common.swing.JLinkButton lbtnDispatchNo;
    private com.l2fprod.common.swing.JLinkButton lbtnHelp;
    private com.l2fprod.common.swing.JLinkButton lbtnIntenet;
    private com.l2fprod.common.swing.JLinkButton lbtnProductName;
    private com.l2fprod.common.swing.JLinkButton lbtnSignOut;
    private com.l2fprod.common.swing.JLinkButton lbtnViewInformation;
    private javax.swing.JPanel pnlBanner;
    private javax.swing.JPanel pnlButton;
    private javax.swing.JPanel pnlComplaint;
    private javax.swing.JPanel pnlCustomer;
    private javax.swing.JPanel pnlLeft;
    private javax.swing.JPanel pnlList;
    private javax.swing.JPanel pnlProduct;
    private javax.swing.JPanel pnlRight;
    private javax.swing.JPanel pnlRightLeft;
    private javax.swing.JPanel pnlRightRight;
    private javax.swing.JPanel pnlTable;
    private javax.swing.JScrollPane scr;
    private javax.swing.JScrollPane scrlist;
    private javax.swing.JTextArea taContent;
    private javax.swing.JTable tbList;
    private javax.swing.JTextField tfDispatchNo;
    private javax.swing.JTextField tfProductName;
    private javax.swing.JTextField tfTitle;
    private javax.swing.JTextField tfWarranty;
    private com.l2fprod.common.swing.JTaskPane tp;
    private com.l2fprod.common.swing.JTaskPaneGroup tpCustomManagement;
    private com.l2fprod.common.swing.JTaskPaneGroup tpSearch;
    // End of variables declaration//GEN-END:variables

}
